{include file=top.html}
<div id="header" class="w-full">
	<div class="shop-t w clearfix pb10 mb5 mt5">
      <div class="logo mt10">
         <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a>
      </div>
      <div class="top-search">
         <div class="top-search-box clearfix">
         	<ul class="top-search-tab clearfix">
            	<li id="index" class="current"><span>商品</span></li>
                <li id="store"><span>店铺</span></li>
                <li id="groupbuy"><span>团购</span></li>
            </ul>
         	<div class="form-fields">
           		<form method="GET" action="{url app=search}">
               		<input type="hidden" name="app" value="search" />
               		<input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}" />
               		<input type="text"   name="keyword" value="{$smarty.get.keyword}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}_bj {/if}" />
               		<input type="submit" value="{$lang.search}" class="submit" hidefocus="true" />
            	</form>
         	</div>
         </div>
         <div class="top-search-keywords">
         	<span>{$lang.hot_search}{$lang.colon}</span>
         	<!--{foreach from=$hot_keywords item=keyword name=fe_keyword}-->
    		<a {if $smarty.foreach.fe_keyword.iteration % 3 == 1}style="color:#EE3000;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a>
    		<!--{/foreach}-->
         </div>
      </div>
      <div class="header_cart">
      	<div class="title clearfix">
        	<b></b><a href="{url app=cart}">去购物车结算</a><em></em>
        </div>
        <div class="shoping"><span class="count-cart J_C_T_GoodsKinds">{$cart_goods_kinds}</span></div>
        <div class="shadow"></div>
        <div class="cart-list">
        	 <!--{if $carts_top.cart_items}-->
             <div class="goods-list">
            	<h4>最新加入的商品</h4>
            	<!--{foreach from=$carts_top.cart_items item=cart name=fe_cart}-->
                <div {if $smarty.foreach.fe_cart.last}style="border:0px;"{/if} class="clearfix list" id="cart_goods{$cart.rec_id}">
                    <div class="goods-img">
                        <a href="{url app=goods&id=$cart.goods_id}" target="_top"><img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40"></a>
                    </div>
                    <div class="goods-title">
                        <a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a>
                   </div>
                    <div class="goods-admin">
                         <div class="mini-cart-count"><strong class="mini-cart-price J_C_T_Price">{$cart.price|price}</strong> x {$cart.quantity}</div>
                         <div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">删除</a></div>
                    </div>
               </div>
               <!--{/foreach}-->
            </div>
            <div class="total">
                <span>共<strong class="J_C_T_GoodsKinds">{$cart_goods_kinds}</strong>件商品</span><span>共计<strong class="J_C_T_Amount">{$carts_top.total|price}</strong></span><br />
                <a href="{url app=cart}">去购物车结算</a>
            </div>
            <!--{else}-->
            <div class="nogoods clearfix">
        		<b></b>购物车中还没有商品，赶紧选购吧！
        	</div>
            <!--{/if}-->
        </div>
      </div>
   </div>
    <div class="w-full mall-nav">
    	<ul class="w clearfix">
            <li class="allcategory float-left">
            	<a class="allsort" href="{url app=category}" target="_blank">全部分类</a>
                <!--{if !$index}-->
                <div class="allcategory-list hidden">
                    <div class="content clearfix">
                        <!--{foreach from=$header_gcategories.gcategories item=category name=fe_category}-->
                        <div class="item">
                            <div class="pborder">
                                <p><a href="{url app=search&cate_id=$category.id}" target="_blank">{$category.value|escape}</a></p>
                            </div>
                            <div class="pop" {if $category.top} style="top:{$category.top}"{/if}>
                                <div class="catlist float-left">
                                    <!--{foreach from=$category.children item=child name=fe_child}--> 
                                    <dl class="clearfix" {if $smarty.foreach.fe_child.last} style="border-bottom:0"{/if}>
                                        <dt class="float-left"><a href="{url app=search&cate_id=$child.id}"><strong>{$child.value|escape}</strong></a></dt>
                                        <dd class="float-left">
                                            <!--{foreach from=$child.children item=child2 name=fe_child2}-->
                                            <a {if $smarty.foreach.fe_child2.iteration % 3 ==1 } style="color:#C00;"{/if} href="{url app=search&cate_id=$child2.id}">{$child2.value|escape}</a>
                                            <!--{/foreach}-->
                                        </dd>
                                    </dl> 
                                    <!--{/foreach}-->
                                </div>
                                <div class="catbrand float-left">
                                    <!--{if $category.image.image}-->
                                    <h2>热门活动</h2>
                                    <a class="mb10 block" href="{$category.image.link}"><img width="210" src="{$category.image.image}" /></a>
                                    <!--{/if}-->
                                    <!--{if $category.brands}-->
                                    <h2>热门品牌</h2>
                                    <ul class="clearfix mb10">
                                        <!-- {foreach from=$category.brands item=brand name=fe_brand} -->
                                        <li class="float-left"><a href="{url app=search&brand=$brand.brand_name|escape:url}" title="{$brand.brand_name}">{$brand.brand_name|escape}</a></li>                                  		
                                        <!-- {/foreach} -->
                                    </ul>
                                    <!--{/if}-->
                                    <!--{if $category.store}-->
                                    <h2>推荐店铺</h2>
                                    <ul class="clearfix">
                                        <!-- {foreach from=$category.store item=store name=fe_store} -->
                                        <li class="float-left"><a href="{url app=store&id=$store.store_id}" title="{$store.store_name}">{$store.store_name}</a></li>                                  		
                                        <!-- {/foreach} -->
                                    </ul>
                                    <!--{/if}-->
                                </div>           
                            </div>
                        </div>
                        <!--{/foreach}-->
                    </div>
                </div>
                <!--{/if}-->
            </li>
            
            </li>
            <li class="each float-left inline-block"><a  href="{$site_url}">{$lang.home}</a></li>
            <!--{foreach from=$navs.middle item=nav}-->
            <li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $nav.hot==1}<span class="absolute block"></span>{/if}</a></li>
            <!--{/foreach}-->
    	</ul>
    </div>
</div>